package com.hongye.common.exception;

/**
 * @author lins
 * @date 2021/10/15 14:42
 */
public enum BizCodeEnum {
    UNKNOWN_EXCEPTION(10000, "参数未知异常"),
    VALID_EXCEPTION(10001, "参数格式校验失败"),
    NULL_EXCEPTION(88888,"空指针异常"),
    HONGYE_UNKNOWN_EXCEPTION(99999,"未知异常");
    private int code;
    private String message;

    BizCodeEnum(int code,String message){
        this.code=code;
        this.message = message;
    }

    public int getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }
}
